package com.question.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.question.entity.Judgment;
@Repository
public interface JudgmentRepository extends PagingAndSortingRepository<Judgment, Long>, JpaSpecificationExecutor<Judgment> {
	@Query(value="from Judgment j where j.num=?1")
	public Judgment findByNum(String num);
}
